import {
	DataViewActionType,
	IDataViewStore,
	IDataViewController,
	IDataViewCtrlAbility,
	IDataViewAbility,
} from '@/core/interface';
import { MDViewController } from './md-view-controller';

export class DataViewController
	extends MDViewController<DataViewActionType, IDataViewStore, IDataViewAbility>
	implements IDataViewController<IDataViewStore, IDataViewAbility>
{
	/**
	 * 获取卡片视图部件能力
	 *
	 * @protected
	 * @return {*}  {(IDataViewAbility | undefined)}
	 * @memberof GridViewController
	 */
	protected getMainCtrlAbility(): IDataViewCtrlAbility | undefined {
		return this.getSubAbility<IDataViewCtrlAbility>('dataview');
	}
}
